package net.csdn.business.notify.common.constant;

/**
 * @author likun
 * @date 2022/6/6 18:34
 */
public class CommonConstants {
    public static final String TRUE = "true";

    public static final String TRACE_ID = "traceId";

    public static final String TRACE_IP = "TRACE_IP";

    public static final String FIELD_TRACE_ID = "traceid";
    public static final String FIELD_EAGLEEYE_TRACEID = "eagleeye-traceid";


    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "r_s:";

    public static final String TEXT_UNKNOWN = "unknown";

    public static String COMMA = ",";
    public static String COLON = ":";
    public static String SLASH = "/";
    public static String POUND = "#";
    public static String UNDERLINE = "_";
    public static String BLACK = "";
    public static String UTF_8 = "utf-8";
    public static String UTF8 = "UTF8";
    public static String MD5 = "MD5";

    public static final Integer INT_ZERO = 0;
    public static final Integer INT_ONE = 1;
    public static final Integer INT_NEGATIVE_ONE = -1;
    public static final Integer INT_EIGHT = 8;
    public static final Integer INT_TEN = 10;
    public static final Integer INT_TWENTY = 20;
    public static final Integer INT_THIRTY = 30;
    public static final Integer ONE_HUNDRED = 100;

    public static final long LONG_ZERO = 0L;

    public static final double DOUBLE_ZERO = 0d;
    public static final double DOUBLE_ONE = 1.0;

    public static final String HEADER_TOKEN_EXTERNAL_NO_FILL = "External-no-fill";
    public static final String HEADER_TOKEN_EXTERNAL_AK = "External-Ak";
    public static final String HEADER_TOKEN_EXTERNAL_TOKEN = "External-token";








    /**
     * 日期格式化配置
     */
    public static final String DEFAULT_PATTERN = "yyyy-MM-dd'T'HH:mm:ssXXX";
    public static final String DEFAULT_TIMEZONE = "GMT+8";


    /**
     * 用户私信相关常量
     */
    public static final String USER_TARGET_TYPE = "user";

    public static final String USER_MESSAGE_ACT = "message";


    /**
     * 用户私信配置：所有人的key
     */
    public static final String USER_MESSAGE_30 = "30";

    /**
     * 用户私信配置：关注我的人
     */
    public static final String USER_MESSAGE_20 = "20";

    /**
     * 用户私信配置：我关注的人
     */
    public static final String USER_MESSAGE_10 = "10";

    public static final String IS_OPEN = "is_open";



    /**
     * 邮件模板的标题key
     */
    public static final String EMAIL_TILTE = "title";


    /**
     * 邮件模板的标题key
     */
    public static final String PROJECT_NAME = "name";

}